package com.quanyan.comment.response;

import com.quanyan.user.response.RespUserShowInfo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/5/26.
 * 评论查询返回对象
 */
public class RespComment implements Serializable{

    private Integer id;

    private String systemCode;

    private String businessCode;

    /**
     * 评论人
     */
    private Integer fromUser;

    /**
     * 被评论人
     */
    private Integer toUser;

    /**
     *
     */
    private String commentContent;

    private Integer commentType;

    private Integer replayId;

    private Integer commentStatus;

    private Date createTime;

    private Integer businessId;

    private Double score = 0.0;

    private Integer commonParam;

    private String orderNo;

    private List<RespCommentDetailScore> respCommentDetailScore;

    private List<RespPicture> lstPic;

    /**
     * 匿名 1 0 不匿名
     */
    private byte anonymous;

    private List<RespComment> lstReplayComment;

    private List<RespCommentTag> commentTagList;


    /**
     * 用户信息
     */
    private RespUserShowInfo respUserShowInfo;

    public RespUserShowInfo getRespUserShowInfo() {
        return respUserShowInfo;
    }

    public void setRespUserShowInfo(RespUserShowInfo respUserShowInfo) {
        this.respUserShowInfo = respUserShowInfo;
    }

    public List<RespCommentTag> getCommentTagList() {
        if (commentTagList == null)
            commentTagList = new ArrayList<>();
        return commentTagList;
    }

    public void setCommentTagList(List<RespCommentTag> commentTagList) {
        this.commentTagList = commentTagList;
    }

    public List<RespComment> getLstReplayComment() {
        if ( lstReplayComment == null )
            lstReplayComment = new ArrayList<>();
        return lstReplayComment;
    }

    public void setLstReplayComment(List<RespComment> lstReplayComment) {
        this.lstReplayComment = lstReplayComment;
    }

    public byte getAnonymous() {
        return anonymous;
    }

    public void setAnonymous(byte anonymous) {
        this.anonymous = anonymous;
    }

    public RespComment() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        this.systemCode = systemCode;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    public Integer getFromUser() {
        return fromUser;
    }

    public void setFromUser(Integer fromUser) {
        this.fromUser = fromUser;
    }

    public Integer getToUser() {
        return toUser;
    }

    public void setToUser(Integer toUser) {
        this.toUser = toUser;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getCommentType() {
        return commentType;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }

    public Integer getReplayId() {
        return replayId;
    }

    public void setReplayId(Integer replayId) {
        this.replayId = replayId;
    }

    public Integer getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(Integer commentStatus) {
        this.commentStatus = commentStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }


    public List<RespCommentDetailScore> getLstCommentDetailScore() {
        return respCommentDetailScore;
    }

    public void setLstCommentDetailScore(List<RespCommentDetailScore> RespCommentDetailScore) {
        this.respCommentDetailScore = RespCommentDetailScore;
    }


    public Integer getCommonParam() {
        return commonParam;
    }

    public void setCommonParam(Integer commonParam) {
        this.commonParam = commonParam;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public List<RespCommentDetailScore> getRespCommentDetailScore() {
        return respCommentDetailScore;
    }

    public void setRespCommentDetailScore(List<RespCommentDetailScore> respCommentDetailScore) {
        this.respCommentDetailScore = respCommentDetailScore;
    }

    public List<RespPicture> getLstPic() {
        if(this.lstPic == null)
            lstPic = new ArrayList<RespPicture>();
        return lstPic;
    }

    public void setLstPic(List<RespPicture> lstPic) {
        this.lstPic = lstPic;
    }

    @Override
    public String toString() {
        return "RespComment{" +
                "id=" + id +
                ", systemCode='" + systemCode + '\'' +
                ", businessCode='" + businessCode + '\'' +
                ", fromUser=" + fromUser +
                ", toUser=" + toUser +
                ", commentContent='" + commentContent + '\'' +
                ", commentType=" + commentType +
                ", replayId=" + replayId +
                ", commentStatus=" + commentStatus +
                ", createTime=" + createTime +
                ", businessId=" + businessId +
                ", score=" + score +
                ", commonParam=" + commonParam +
                ", orderNo='" + orderNo + '\'' +
                ", respCommentDetailScore=" + respCommentDetailScore +
                ", lstPic=" + lstPic +
                ", anonymous=" + anonymous +
                ", lstReplayComment=" + lstReplayComment +
                '}';
    }
}
